<#assign module="car"/>

<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/form.css">
</@override>

<@override name="body">

	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-default" style="height: 400px;">
				<div class="panel-heading">
					修改品牌型号信息
			    </div>
			    <div class="panel-body">
    				<form id="submit_form" action="${ctx}/brandType/update" class="form-horizontal" method="post">
		                	<input type="hidden" name="id" value="${brandType.id}">
		                	<input type="hidden" name="brandId" value="${brand.id}">
		                	
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">品牌型号名称：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control"  name="name" type="text" value="${brandType.name?if_exists}" required />
		                    </div>
		                </div>
		                
		                <div class="form-group">   
			      		 	  <label class="col-sm-3 control-label">品牌型号顺序：</label>
			      		 	   <div class="col-sm-3">
			      		     		 <input class="form-control" type="number" name="sequence" value="${brandType.sequence?if_exists}" min="0" required />  
			      		      </div>
				      	 </div>
				      	 
		               	<div class="form-group">   
			      		 	  <label class="col-sm-3 control-label">所属品牌：</label>
			      		 	   <div class="col-sm-3">
			      		     		 <input type="text" name="brandName" value="${brand.name?if_exists}" placeholder="如:宝马" required />  
			      		      </div>
				      	 </div>
				      	
		                <div class="form-group" style="margin-left:10px;">
			                <label class="col-sm-3 control-label"></label>
			                <input type="submit" class="btn btn-primary" value="保存修改">
			                <input type="button" class="btn btn-default" onclick="window.location.href = '${ctx}/brand/list';" value="返回">
			            </div>
					</form>
        		</div>
			</div>
		</div>
	</div>

</@override>
<@override name="footer">

</@override>
<@extends name="../layout.ftl"/>